<?php /* Smarty version 2.6.14, created on 2015-09-01 17:08:27
         compiled from gamesign.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'gamesign.index.html', 20, false),array('modifier', 'date_format', 'gamesign.index.html', 62, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0" id="search">
    <tr>
        <td></td>
        <td>
           <!--原包:
            <input type="text" name="searchPak" id="searchPak" value="<?php echo $this->_tpl_vars['search']['searchPak']; ?>
" />
            授权文件:
            <input type="text" name="searchPer" id="searchPer" value="<?php echo $this->_tpl_vars['search']['searchPer']; ?>
" /> -->
            添加时间:
            <input class="text" style="width:120px" type="text" name="date_stat" id="cctime_s" readonly value="<?php echo $this->_tpl_vars['search']['date_stat']; ?>
"/>
            到<input class="text" style="width:120px" type="text" name="date_end" id="cctime_e" readonly value="<?php echo $this->_tpl_vars['search']['date_end']; ?>
"/>&nbsp;
            SoftId:<input class="text" style="width:120px" type="text" name="softId" id="softId" value="<?php echo $this->_tpl_vars['search']['softId']; ?>
"/>
            选择渠道:
            <select name="Searchannel"  id="s_channel">
                <option value=''>--选择渠道--</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['channel'],'selected' => $this->_tpl_vars['search']['Searchannel']), $this);?>

            </select>&nbsp;&nbsp;
            选择状态:
            <select name="SearStatus"  id="SearStatus">
                <option value=''>--选择状态--</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['status'],'selected' => $this->_tpl_vars['search']['SearStatus']), $this);?>

            </select>&nbsp;&nbsp;
            <input type="submit" name="submit" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" />
        </td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">

    <thead>
    <tr>
        <th>原包应用名</th>
        <th>授权文件</th>
        <th>Soft</th>
        <th>类型</th>
        <th>状态</th>
        <th>添加时间</th>
        <th>完成时间</th>
        <th>包大小</th>
        <th>包名/失败原因</th>
        <th>添加人</th>
        <th>渠道</th>
        <?php if ($this->_tpl_vars['isSdk']): ?>
        <th>SDK后台</th>
        <th>上传CDN</th>
        <th>版本</th>
        <?php endif; ?>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php $_from = $this->_tpl_vars['result']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
?>
    <tr class="row0">
        <td><?php echo $this->_tpl_vars['info']['packApp']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['perkApp']; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['softId']; ?>
</td>
        <td><?php echo $this->_tpl_vars['signType'][$this->_tpl_vars['info']['packType']]; ?>
</td>
        <td><?php echo $this->_tpl_vars['status'][$this->_tpl_vars['info']['status']]; ?>
</td>
        <td><?php echo ((is_array($_tmp=$this->_tpl_vars['info']['addTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m/%d %H:%M") : smarty_modifier_date_format($_tmp, "%m/%d %H:%M")); ?>
</td>
        <td><?php if ($this->_tpl_vars['info']['trueTime'] != 0):  echo ((is_array($_tmp=$this->_tpl_vars['info']['trueTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m/%d %H:%M") : smarty_modifier_date_format($_tmp, "%m/%d %H:%M"));  endif; ?></td>
        <td><?php echo $this->_tpl_vars['info']['packSize']; ?>
</td>
        <?php if ($this->_tpl_vars['info']['status'] == 3): ?>
        <td><a href="<?php echo $this->_tpl_vars['downip']; ?>
:801/<?php echo $this->_tpl_vars['info']['packName']; ?>
" title="<?php echo $this->_tpl_vars['info']['packName']; ?>
"><?php echo $this->_tpl_vars['info']['showName']; ?>
</a></td>
        <?php else: ?>
        <td><?php echo $this->_tpl_vars['info']['errorinfo']; ?>
</td>
        <?php endif; ?>
        <td><?php echo $this->_tpl_vars['info']['addUser']; ?>
</td>
        <td><?php echo $this->_tpl_vars['channel'][$this->_tpl_vars['info']['channel']]; ?>
</td>

        <?php if ($this->_tpl_vars['isSdk']): ?>
        <td><?php if ($this->_tpl_vars['info']['isPushSdk'] == 1): ?> <img src="/public/images/done.gif"> <?php else: ?> <img src="/public/images/delete.gif"> <?php endif; ?></td>
        <td><?php if ($this->_tpl_vars['info']['isPushCdn'] == 1): ?> <img src="/public/images/done.gif"> <?php else: ?> <img src="/public/images/delete.gif"> <?php endif; ?></td>
        <td><?php echo $this->_tpl_vars['info']['version']; ?>
</td>
        <?php endif; ?>

        <td>
            <?php if ($this->_tpl_vars['info']['status'] == 4): ?>
            <a href="<?php echo @BASEURI; ?>
gamesign/trysign/<?php echo $this->_tpl_vars['info']['id']; ?>
">重试</a>&nbsp;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['info']['status'] == 3): ?>
            <!--<a href="http://down.giles.cc/<?php echo $this->_tpl_vars['info']['packName']; ?>
">下载</a>&nbsp; -->
            <?php endif; ?>
            <?php if ($this->_tpl_vars['info']['status'] != 3): ?>
            <a href="<?php echo @BASEURI; ?>
gamesign/edit/<?php echo $this->_tpl_vars['info']['id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>&nbsp;
            <?php endif; ?>
            <a href="<?php echo @BASEURI; ?>
gamesign/delete/<?php echo $this->_tpl_vars['info']['id']; ?>
" <?php echo @IS_DELETE; ?>
><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
        </td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    <tr>
        <td> <input type="button" value="添加任务" class="button" onclick="button_location('<?php echo @BASEURI; ?>
gamesign/add/<?php echo $this->_tpl_vars['packTypeId']; ?>
')" accesskey="N"></td>
        <td colspan="10" style="text-align:left"><?php echo $this->_tpl_vars['page']; ?>
</td>
    </tr>
    </tfoot>
</table>
</form>
<script language="javascript">
    $('#cctime_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
    $('#cctime_e').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
</script>